Skip to content

Update nav links, redirects, and cleanup#691

Merged
realproject7 merged 3 commits intomainfrom
task/685-nav-redirects-cleanup
Mar 31, 2026
Merged

Update nav links, redirects, and cleanup#691
realproject7 merged 3 commits intomainfrom
task/685-nav-redirects-cleanup

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Nav: Replace "Writer" and "Reader" links with single "Dashboard" link
  • Dashboard links to /profile/[connected-address] when connected, falls back to /writer redirect when not
  • Dashboard link highlights when on any /profile/ page
  • Redirects already in place: /writer → profile stories tab, /reader → profile portfolio tab
  • ?tab=stories, ?tab=portfolio, ?tab=activity deep links already work (from PR Merge Writer Dashboard into Profile Stories tab #689)
  • Updated NavBar test with wagmi mock and new nav structure

Fixes #685

Test plan

  • Nav shows "Dashboard" instead of "Writer" and "Reader"
  • "Dashboard" links to own profile when connected
  • /writer redirects to profile stories tab
  • /reader redirects to profile portfolio tab
  • ?tab=stories, ?tab=portfolio, ?tab=activity URL params work
  • Mobile nav updated consistently
  • NavBar tests pass ✅
  • npm run build passes ✅

🤖 Generated with Claude Code

- Nav: Replace "Writer" and "Reader" with single "Dashboard" link
- Dashboard links to /profile/[connected-address] when connected,
  falls back to /writer redirect when not connected
- Dashboard highlights when on any /profile/ page
- Update NavBar test to reflect new nav structure + add wagmi mock

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Mar 31, 2026 9:53pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nav consolidated: Writer+Reader replaced with single Dashboard link, dynamic href based on connection state, proper isActive highlighting for /profile/ pages, key={label} for dynamic hrefs, test updated with wagmi mock. All #685 criteria met.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The nav cleanup is close, but the new Dashboard active-state logic is still wrong for one common case. When the viewer is disconnected and browsing any public /profile/... page, the Dashboard item no longer highlights even though this PR claims it should.

Findings

  • [medium] Dashboard only highlights /profile/ routes when the link href itself starts with /profile/, but the disconnected fallback href is /dashboard/writer. That means any public profile page viewed while disconnected loses the active Dashboard state.
    • File: src/components/NavBar.tsx:27
    • Suggestion: Decouple the Dashboard active-state check from the current href value so pathname.startsWith("/profile/") still activates Dashboard even when the fallback destination is /dashboard/writer.

Decision

Requesting changes because the current active-state logic does not match the intended Dashboard behavior on public profile pages.

…ages

Decouple Dashboard highlight from its href — always mark active on
/profile/ and /dashboard/ routes regardless of connection state.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review: isActive now decoupled from href for Dashboard — highlights on /profile/ and /dashboard/ routes regardless of connection state. LGTM.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The Dashboard active-state regression is fixed, but issue #685 is still not fully implemented. The dead-code cleanup requirement remains incomplete on the latest head.

Findings

  • [medium] ReaderPortfolio is still checked into the tree even though it is no longer referenced anywhere on the PR head.
    • File: src/components/ReaderPortfolio.tsx:23
    • Suggestion: Delete ReaderPortfolio.tsx (and any leftover related comments/imports) or wire it back into a live route if it is intentionally still part of the product. As written, this misses #685's "remove unused writer/reader dashboard components" requirement.

Decision

Requesting changes because the PR still leaves orphaned reader dashboard code behind, so the cleanup portion of #685 is not complete.

Dead code — functionality fully merged into Profile Portfolio tab.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-review: ReaderPortfolio.tsx deleted and stale comment reference cleaned up. Dead code removed per #685 cleanup requirement. LGTM.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up resolves the remaining #685 cleanup blocker. ReaderPortfolio.tsx is deleted on the latest head and the stale profile-page comment was cleaned up, while the earlier Dashboard nav fix remains intact.

Findings

  • None.

Decision

Approving because the PR now satisfies the nav, redirect, tab-link, and cleanup scope for #685.

@realproject7 realproject7 merged commit cf97601 into main Mar 31, 2026
5 checks passed
@realproject7 realproject7 deleted the task/685-nav-redirects-cleanup branch March 31, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[#682] Sub-3: Update nav links, redirects, and cleanup

2 participants